<%@ page import="org.gnomus.server.C" %>
<form id="create_game" method="POST" action="/game/create" onsubmit="return validate($(this));">
  <h3>Create a Game</h3>
  <div>
    <label for="name">Name</label>
    <br />
    <input type="text" id="name" name="name" validation="required">
  </div>
  <div>
    <label for="type">Type</label>
    <br />
    <select id="type" name="type" validation="required">
      <%
        for (String t : C.GAME_TYPES) {
      %>
      <option><%= t %></option>
      <%
        }
      %>
    </select>
  </div>
  <div class="clear"></div>
  <div>
    <input class="f-right" type="submit" value="Create!">
  </div>
  <div class="clear"></div>
</form>
<a class="f-left" href="/game/list">&lArr;Back to all games</a>
<div class="clear"></div>